#!/usr/bin/env python
# -*- coding: utf-8 -*-

import os
from multiprocessing import Process

def run_proc(name):
    print('worker process [name=%s, pid=%d] is running...'%(name,os.getpid()))

if __name__ == '__main__':
    print('master process [pid=%d]'%os.getpid())
    p = Process(target=run_proc, args=('worker1',))
    print('ready to execute worker process...')
    p.start()
    p.join()
    print('i am pid=%d'%os.getpid())